package cn.com.cym.gamezao.repository;

import cn.com.cym.gamezao.base.BaseRepository;
import cn.com.cym.gamezao.entity.Dict;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.redis.core.RedisHash;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@RedisHash
@Repository
public interface DictRepository extends BaseRepository<Dict,Long> {

    @Query("from Dict where code=:code and deleted=:deleted")
    Dict findByCode(@Param("code") String code,@Param("deleted") Boolean deleted);
}
